<?php
/**
 * Created by PhpStorm.
 * User: Liu
 * Date: 2022/9/21
 * Time: 17:12
 */

namespace app\admin\validate;


use think\Validate;

class Section extends Validate {
    protected $rule = [
        'name' => 'require',
        'pid' => 'require',
        'url' => 'require'
    ];
    protected $message = [
        'name.require' => '请输入栏目名称',
        'pid.require' => '请选择上级栏目',
        'url.require' => '请输入url'
    ];
}